struct Solution {}

fn main() {}

impl Solution {
    pub fn is_anagram(s: String, t: String) -> bool {
        let mut sv: Vec<char> = s.chars().collect();
        let mut tv: Vec<char> = t.chars().collect();
        sv.sort();
        tv.sort();
        if sv == tv {
            return true;
        }
        false
    }
}